/*
 * Powered By [Seven]
 * Since 2016 - 2019
 */


package com.czmh.etc.onlinepubsys.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

@Entity
@Table(name = "etc_ecardview")
public class EtcEcardview extends BaseModel {
	
	//alias
	public static final String TABLE_ALIAS = "EtcEcardview";
	public static final String ALIAS_ID = "id";
	public static final String ALIAS_USERID = "用户id";
	public static final String ALIAS_SERIALNUM = "流水号";
	public static final String ALIAS_CARD_TYPE = "申办的信用卡：1表示交通银行信用卡，2表示xx银行信用卡；";
	public static final String ALIAS_IP = "ip";
	public static final String ALIAS_CREATETIME = "createtime";
	public static final String ALIAS_UPDATETIME = "updatetime";
	 
	//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
	//columns START
	@Id
	@Column(name = "id")
	private java.lang.String id;
	@Column(name = "userid")
	private java.lang.String userid;
	@Column(name = "serialnum")
	private java.lang.String serialnum;
	@Column(name = "card_type")
	private java.lang.Integer card_type;
	@Column(name = "completeetcapply")
	private java.lang.Integer completeetcapply;
	@Column(name = "ip")
	private java.lang.String ip;
	@Column(name = "createtime")
	private java.util.Date createtime;
	@Column(name = "updatetime")
	private java.util.Date updatetime;
	//columns END

	public EtcEcardview(){
	}

	public EtcEcardview(
		java.lang.String id
	){
		this.id = id;
	}

	/**  
	 * 设置id  
	 * @param id id  
	 */  
	public void setId(java.lang.String id) {
		this.id = id;
	}
	
	/**  
	 * 获取id   
	 * @return id id   
	 */
	public java.lang.String getId() {
		return this.id;
	}
	/**  
	 * 设置用户id  
	 * @param userid 用户id  
	 */  
	public void setUserid(java.lang.String userid) {
		this.userid = userid;
	}
	
	/**  
	 * 获取用户id   
	 * @return userid 用户id   
	 */
	public java.lang.String getUserid() {
		return this.userid;
	}
	/**  
	 * 设置流水号  
	 * @param serialnum 流水号  
	 */  
	public void setSerialnum(java.lang.String serialnum) {
		this.serialnum = serialnum;
	}
	
	/**  
	 * 获取流水号   
	 * @return serialnum 流水号   
	 */
	public java.lang.String getSerialnum() {
		return this.serialnum;
	}
	/**  
	 * 设置申办的信用卡：1表示交通银行信用卡，2表示xx银行信用卡；  
	 * @param card_type 申办的信用卡：1表示交通银行信用卡，2表示xx银行信用卡；  
	 */  
	public void setCard_type(java.lang.Integer card_type) {
		this.card_type = card_type;
	}
	
	/**  
	 * 获取申办的信用卡：1表示交通银行信用卡，2表示xx银行信用卡；   
	 * @return card_type 申办的信用卡：1表示交通银行信用卡，2表示xx银行信用卡；   
	 */
	public java.lang.Integer getCard_type() {
		return this.card_type;
	}
	/**  
	 * 设置ip  
	 * @param ip ip  
	 */  
	public void setIp(java.lang.String ip) {
		this.ip = ip;
	}
	
	/**  
	 * 获取ip   
	 * @return ip ip   
	 */
	public java.lang.String getIp() {
		return this.ip;
	}
	/**  
	 * 设置createtime  
	 * @param createtime createtime  
	 */  
	public void setCreatetime(java.util.Date createtime) {
		this.createtime = createtime;
	}
	
	/**  
	 * 获取createtime   
	 * @return createtime createtime   
	 */
	public java.util.Date getCreatetime() {
		return this.createtime;
	}
	/**  
	 * 设置updatetime  
	 * @param updatetime updatetime  
	 */  
	public void setUpdatetime(java.util.Date updatetime) {
		this.updatetime = updatetime;
	}
	
	/**  
	 * 获取updatetime   
	 * @return updatetime updatetime   
	 */
	public java.util.Date getUpdatetime() {
		return this.updatetime;
	}

	public java.lang.Integer getCompleteetcapply() {
        return completeetcapply;
    }

    public void setCompleteetcapply(java.lang.Integer completeetcapply) {
        this.completeetcapply = completeetcapply;
    }

    public String toString() {
		return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
			.append("id",getId())
			.append("userid",getUserid())
			.append("serialnum",getSerialnum())
			.append("card_type",getCard_type())
			.append("ip",getIp())
			.append("createtime",getCreatetime())
			.append("updatetime",getUpdatetime())
			.toString();
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof EtcEcardview == false) {
			return false;
		}
		if(this == obj) {
			return true;
		}
		EtcEcardview other = (EtcEcardview)obj;
		return new EqualsBuilder()
			.append(getId(),other.getId())
			.isEquals();
	}
}

